package com.example.coreshopapp.app;

//import com.example.coreshopapp.bean.ParaData;
//import com.example.coreshopapp.bean.PosDuty;
//import com.example.coreshopapp.bean.Stock;
//import com.example.coreshopapp.bean.User;

//import com.example.coreshopapp.bean.corecmsstore;
//import com.example.coreshopapp.bean.corecmssystemsetup;
//import com.example.coreshopapp.bean.sysrolepos;
//import com.example.coreshopapp.bean.sysuser;

import com.example.coreshopapp.bean.MemberData;
import com.example.coreshopapp.bean.SystemSnData;
import com.example.coreshopapp.bean.SysuserData;

//后台接口:E:\18_YunShop\Custom\00_YunShop_Hzlk\YunShop_Member
public class Constants {

    public static class sysPara{
        public static int Screen_Type = 2;//1:小屏,2:大屏（1920**1080*200），3：自助收银
        public static int PosGoodsColumns =  4;//显示的商品列数
        public static int GetScreenFlag = 0;//是否已设置过了屏幕，防止重复设置
//        public static ParaData paraRow = new ParaData();
    }

    public static final String DB = "CloudPos.db";

//    public static String BASE_URL ="http://192.168.1.218:5063/api/"; // 本地
    public static String BASE_URL ="https://admintrlyapp.51trly.com/api/"; //天润正式
    public static String MAIN_URL ="http://192.168.1.129:5066/api/"; //天润本地

    public static final String BASE_URL2 ="http://39.108.106.221:3001/Download/";
    public static String MAIN_URL2 ="http://erp.pos08.com/home/winlogin?json=";//后台登陆地址

    public final static String FILE_URL =BASE_URL2+ "";//下载文件
    public final static String APP_URL = BASE_URL2+"phonePos.txt";//检查APP更新文件

    //public static final String APP_PATH = "/data/data/com.sop.cloudpos";
    //public static final String APP_DIR= "cloudpos";
    //public static final String APP_PATH = Environment.getExternalStorageDirectory().getAbsolutePath() + "/"+APP_DIR;
    //public static final String DB_FILE_NAME = APP_PATH+"/data/"+DB;

    public static final String APP_PATH = "/data/data/com.sop.cloudpos";
    public static final String DB_FILE_NAME = APP_PATH+"/data/"+DB;

    public static final int PAGE_SIZE = 200;
    public static final String APP_FLAG="cloudpos";

//    public static class LoginInfo {
//        public static User UserInfo = new User();
//        public static String Authorization = "";
//
//        public static PosDuty posDuty;
//
//        public static Stock stockInfo = new Stock();
//    }

    //小数点位数
    public static int PointQty = 4;
    public static int PointPrice = 4;
    public static int PointAmount = 2;
    public static int PointDiscount = 2;

    public static class marketUrlClass {
        public static final String URL_GetPosMemberInfo = "GetPosMemberInfo";//读会员卡

        public static final String URL_SetPosMemberPay = "SetPosMemberPay";//会员支付
    }

    public static class spClass {
        public static final String SP_AUTO_START = "SP_AUTO_START";//APP开机自启
        public static final String SP_LIMIT_APP = "SP_LIMIT_APP";//限制不可退出APP
        public static final String SP_USER_INFO = "SP_USER_INFO";   //用户
        public static final String SP_SYS_README = "SP_SYS_README";   //《用户协议和隐私政策》是否已读
        public static final String SP_PROBATIONAL = "SP_PROBATIONAL";//是否是试用

        public static final String SP_PAY_OPEN = "SP_PAY_OPEN";//是否启用移动支付
        public static final String SP_PAY_ACCOUNT = "SP_PAY_ACCOUNT";//是否启用移动支付
        public static final String SP_PAY_PASSWORD= "SP_PAY_PASSWORD";//是否启用移动支付

        public static final String SP_FIRST_LOGIN = "SP_FIRST_LOGIN";   //首次启动
        public static boolean SP_FIRST_LOAD = true;//第一次加载
    }

    //生鲜参数
    public static class freshSet
    {
        public static int Scale_Type = 0;
        public static String Scale_Device_Patch = "/dev/ttyS3";
        public static int Scale_Baudrate = 9600;
        public static String sLog ="";
    }

    //AI参数值
    public static class paraAI
    {
        //public static String AI_URL = "http://192.168.2.176:8900";//激活
        public static String ai_key_register = "44e77d4d6b59f892fea3abd77db9598b";//8900端口
        public static String AI_URL = "";//"http://192.168.2.176:8081";
        public static String ai_key = "2805f0fd-0d8c483d876ff604557c79ec";//8081端口
        public static String image_md51 = "";
        public static String sku_code = "";
        public static String commonParams = "";
        public static String authorization = "";
    }

    public static class payNet
    {
        public static String payUserName = "13538745746";
        public static String payPassword = "776738sdhc";
        public static String payTypeName = "收款小精灵";
        public static boolean IS_START_MOBILE_PAY = true;
    }


    public static class printSet {
        public static boolean IsAutoConnect = true;
        public static boolean IsKitchenPrint = true;//        免打厨房单

        public static int FItemID;
        public static String UsbDeviceName = "";
        public static int PtHeaderNulls = 0;//头部空行数
        public static int PtFooterNulls = 0;//尾部空行数
        public static String PtHeader1 = "";
        public static String PtHeader2 = "";
        public static String PtFooter1 ="";
        public static String PtFooter2 ="";
        public static int PrinterType = 0;
        public static boolean IsConnPrinter = false;
    }

    public static final String SERIALPORTPATH = "SerialPortPath";
    public static final String SERIALPORTBAUDRATE = "SerialPortBaudrate";
    public static final String ACTION_USB_PERMISSION = "com.android.example.USB_PERMISSION";
    public static final int BLUETOOTH_REQUEST_CODE = 0x001;
    public static final int USB_REQUEST_CODE = 0x002;
    public static final int SERIALPORT_REQUEST_CODE = 0x006;
    public static final int MESSAGE_UPDATE_PARAMETER = 0x009;


    public  static  class AppConstVars {
//        public static corecmssystemsetup systemsetup = new corecmssystemsetup();
//        public static sysuser sysUser = new sysuser();
//        public static sysrolepos sysUserRole = new sysrolepos();
//        public static corecmsstore sysStore = new corecmsstore();
//        public static Long classId; // 当班人Id
//        public static Date classTime; // 当班人当班时间
//
//        public static int placeNo = 01;
        public static SysuserData sysUser = new SysuserData();
        public static String token;
        public static String classBillNo = ""; // 当班号
        public static SystemSnData SnInfo; // 获取设备信息
        public static String Sn; // 当前设备号
        public static MemberData MemberInfo; // 会员号

    }
    public static class urlClass {
        public static final String Login_User   = "tools/getUserInfo";
        public static final String Goods_List   = "CoreCmsProducts/GetProductPageList";
        public static final String Goods_category_List   = "CoreCmsGoodsCategory/GetAppCategoryList";
//        public static final String dangban_Api   = "corecmsposclass/DoCreate";
        public static final String dangban_Api   = "corecmsposclass/AppClassStart";
        public static final String dangban_info_Api   = "corecmsposclass/GetAppPossClassInfo";

        public static final String payment_Api   = "corecmsorderpay/GetUserPaymentList "; // 获取支付方式
        public static final String submit_order   = "CoreCmsOrder/PosPush "; // 提交订单
        public static final String system_sn   = "b_posinfo/AppRegister";
        public static final String jiaoban   = "yongyou/AppPushNcApply"; // 交班
        public static final String order_list   = "corecmsorder/GetStoreOrderPageList"; // 订单列表
        public static final String order_detail   = "corecmsorder/AppGetOrderDetail"; // 订单详细
        public static final String class_bill   = "corecmsposclass/getpageList"; // 交班列表
        public static final String bill_pay   = "corecmsposclass/GetBillPayPageList"; // 交款单列表
        public static final String add_member   = "corecmsuser/docreate"; // 新增会员
        public static final String grade_list   = "CoreCmsUserGrade/GetPageList"; // 获取会员列表
        public static final String search_member   = "corecmsuser/GetMemberInfo"; // 查询会员
        public static final String search_member_goods   = "CoreCmsProducts/GetProductByProductIds"; // 查询会员价格
        public static final String all_check_out   = "corecmsorder/AppRefOrder"; // 查询会员价格
        public static final String continue_classBillNo   = "corecmsposclass/AppClassContinue"; // 查询会员价格
    }

}